package com.lt.exception;

public class CustomException extends RuntimeException
{

    public CustomException(Throwable e)
    {
        super(e == null ? "" : e.getClass().getSimpleName() + ":" + e.getMessage(), e);
    }

    public CustomException(String message)
    {
        super(message);
    }

//    public CustomException(String messageTemplate, Object... params) {
//        super(StrUtil.format(messageTemplate, params));
//    }

    public CustomException(String message, Throwable throwable)
    {
        super(message, throwable);
    }

//    public CustomException(Throwable throwable, String messageTemplate, Object... params) {
//        super(StrUtil.format(messageTemplate, params), throwable);
//    }
}
